package 笔记.设计模式.装饰者模式;

/**
 * @author chenhailong
 * @ClassName: PhoneFactory
 * @Description: TODO
 * @date 2021/7/7 15:35
 * @Version 1.0
 */
public class PhoneFactory extends ElectronicEquipment {


    PhoneFactory(Phone phone) {
        super(phone);
    }

    @Override
    public void Yule() {
        phone.Yule();
        kuozhan();
    }
    private void kuozhan() {
        System.out.println("拓展功能。。。。。");


    }
}
